<template>
  <el-table :data="tableData" style="width: 100%">
    <el-table-column prop="delta_time" label="耗时" width="180"> </el-table-column>
    <el-table-column prop="node_count" label="节点数量" width="180"> </el-table-column>
    <el-table-column prop="sector_count" label="扇区数量"> </el-table-column>
  </el-table>
</template>

  <script>
  import axios from 'axios'
export default {
  data() {
    return {
      tableData: [
      ],
    };
  },
  mounted() {
      axios
      .get("http://127.0.0.1:5000/results", {
        headers: {
          "Access-Control-Allow-Origin": "*",
          "Access-Control-Allow-Methods": "GET,PUT,POST,DELETE,PATCH,OPTIONS",
        },
      })
      .then((response) => {
        var data = response.data;
        console.log(data);
        this.tableData = this.tableData.concat(data);
      });
  }
};
</script>